%% saveResults_v1_0
%  Version 1.1
%  Author: Adeyinka Lesi
%  Date: 9/6/15
%  [] = saveResults_v1_0(res)
%  res: struct, results from model (>= v9.0)

function [] = saveResults_v1_0(res2save)

if(~exist(res2save.key.SET_NAME,'dir'))
    mkdir(res2save.key.SET_NAME);
end
if(~exist([res2save.key.SET_NAME '\' res2save.key.FIELD.name],'dir'))
    mkdir([res2save.key.SET_NAME '\' res2save.key.FIELD.name]);
end 
save([res2save.key.FILE_PREFIX '_results.mat'],'res2save');

disp(['> ' mfilename]);
disp(['-> Results for ' res2save.key.FILE_PREFIX ' saved']);